package com.project.erp.model.crm.company;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.project.erp.model.IdEntity;

/**
 * 
 * COPYRIGHT (C) 2013 BY XXX公司
 * 
 * 功能模块名：CRM-公司信息管理
 * 
 * 功能描述：管理自己公司信息（用于开发票）实体类
 * 
 * @author LiJiaGuo
 * 
 * @version 1.0
 * 
 * @created 2013-12-8 下午2:34:00
 */
@Entity
@Table(name = "TBL_CRM_COMPANY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Company extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -476350128592840737L;

	private String expComName; // 出口公司
	private String expComAddress; // 出口公司地址
	private String companyName; // 己方公司名称
	private String companyAddress; // 己方公司地址
	private String companyEmail; // 己方公司邮箱
	private String companyMob; // 己方公司手机号
	private String companyTel; // 己方公司座机号
	private String companyFax; // 己方公司传真
	private String benBankName; // 汇款银行名称
	private String benBankCode; // 汇款银行代号
	private String swiftCode; // 汇款银行识别码
	private String acName; //账号所属
	private String acCode; //账号
	private Boolean isDefault;// 1 是，0 否 默认为0

	@Column(columnDefinition = "varchar(200)", nullable = false)
	public String getExpComName() {
		return expComName;
	}

	public void setExpComName(String expComName) {
		this.expComName = expComName;
	}

	@Column(columnDefinition = "varchar(300)", nullable = false)
	public String getExpComAddress() {
		return expComAddress;
	}

	public void setExpComAddress(String expComAddress) {
		this.expComAddress = expComAddress;
	}

	@Column(columnDefinition = "varchar(200)", nullable = false)
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(columnDefinition = "varchar(300)", nullable = false)
	public String getCompanyAddress() {
		return companyAddress;
	}

	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	@Column(columnDefinition = "varchar(100)")
	public String getCompanyEmail() {
		return companyEmail;
	}

	public void setCompanyEmail(String companyEmail) {
		this.companyEmail = companyEmail;
	}

	@Column(columnDefinition = "varchar(100)")
	public String getCompanyMob() {
		return companyMob;
	}

	public void setCompanyMob(String companyMob) {
		this.companyMob = companyMob;
	}

	@Column(columnDefinition = "varchar(100)", nullable = false)
	public String getCompanyTel() {
		return companyTel;
	}

	public void setCompanyTel(String companyTel) {
		this.companyTel = companyTel;
	}

	@Column(columnDefinition = "varchar(100)", nullable = false)
	public String getCompanyFax() {
		return companyFax;
	}

	public void setCompanyFax(String companyFax) {
		this.companyFax = companyFax;
	}

	@Column(columnDefinition = "varchar(100)", nullable = false)
	public String getBenBankName() {
		return benBankName;
	}

	public void setBenBankName(String benBankName) {
		this.benBankName = benBankName;
	}

	@Column(columnDefinition = "varchar(100)", nullable = false)
	public String getBenBankCode() {
		return benBankCode;
	}

	public void setBenBankCode(String benBankCode) {
		this.benBankCode = benBankCode;
	}

	@Column(columnDefinition = "varchar(100)", nullable = false)
	public String getSwiftCode() {
		return swiftCode;
	}

	public void setSwiftCode(String swiftCode) {
		this.swiftCode = swiftCode;
	}

	@Column(columnDefinition = "varchar(200)")
	public String getAcName() {
		return acName;
	}

	public void setAcName(String acName) {
		this.acName = acName;
	}

	@Column(columnDefinition = "varchar(100)")
	public String getAcCode() {
		return acCode;
	}

	public void setAcCode(String acCode) {
		this.acCode = acCode;
	}

	public Boolean getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}

}
